improved the regexp and moved from split to scan which reduces complexity of regexp