Try this
declare @tbl table (GoodName varchar(50))
insert into @tbl select 'Mr.Rick Pepper'
insert into @tbl select 'Miss Lara Harper'
insert into @tbl select 'Mrs Kim'
insert into @tbl select 'Dr.Alan White'
insert into @tbl select 'Adam Jones'
insert into @tbl select 'William'
insert into @tbl select 'Sir Clark'
--Program Starts
select
case when CHARINDEX(',',FilteredName) = 0 then FilteredName else SUBSTRING(FilteredName,0,CHARINDEX(',',FilteredName)) end as FirstName
,case when CHARINDEX(',',FilteredName) = 0 then Null else SUBSTRING(FilteredName,CHARINDEX(',',FilteredName)+1,LEN(FilteredName)) end as LastName
from (
select REPLACE(LTRIM(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(GoodName,'Mr.',''),'Miss',''),'Mrs',''),'Dr.',''),'Sir','')),' ',',') as FilteredName
from @tbl
)x(FilteredName)
Output
FirstName LastName
Rick Pepper
Lara Harper
Kim NULL
Alan White
Adam Jones
William NULL
Clark NULL